package com.hnqcgczy.supplier.service;

import com.hnqcgczy.supplier.vo.Shareholder;

import java.sql.SQLException;
import java.util.List;

public interface ShareholderService {
    /**
     * 新增供应商--股东信息
     *
     * @param shareholder
     * @return
     * @throws SQLException
     */
    boolean add(Shareholder shareholder) throws SQLException;

    /**
     * 修改供应商--股东信息
     *
     * @param shareholder
     * @return
     * @throws SQLException
     */
    boolean update(Shareholder shareholder) throws SQLException;

    /**
     * 删除供应商--股东信息
     *
     * @param shareholderId
     * @return
     * @throws SQLException
     */
    boolean delete(Integer shareholderId) throws SQLException;

    /**
     * 查单个供应商--股东信息
     *
     * @param shareholderId
     * @return
     * @throws SQLException
     */
    Shareholder findOne(Integer shareholderId) throws SQLException;

    /**
     * 查询供应商--股东信息
     *
     * @param shareholder
     * @param pageNow
     * @param pageSize
     * @return
     * @throws SQLException
     */
    List<Shareholder> findByLike(Shareholder shareholder, int pageNow, int pageSize) throws SQLException;

    /**
     * 总条数供应商--股东信息
     *
     * @param shareholder
     * @return
     * @throws SQLException
     */
    int totals(Shareholder shareholder) throws SQLException;
}
